\hypertarget{class_ps3_joystick}{\section{Ps3\-Joystick Class Reference}
\label{class_ps3_joystick}\index{Ps3\-Joystick@{Ps3\-Joystick}}
}


{\ttfamily \#include $<$Ps3\-Joystick.\-hpp$>$}

Inheritance diagram for Ps3\-Joystick\-:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{class_ps3_joystick}
\end{center}
\end{figure}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \hyperlink{class_ps3_joystick_ad447de4b9fe7634911569cd2aeaf7eb4}{Ps3\-Axis} \{ \\*
{\bfseries k\-Left\-X} = 1, 
{\bfseries k\-Left\-Y} = 2, 
{\bfseries k\-Right\-X} = 3, 
{\bfseries k\-Front\-Back\-Tilt} = 4, 
\\*
{\bfseries k\-Left\-Right\-Tilt} = 5, 
{\bfseries k\-Right\-Y} = 6
 \}
\item 
enum \hyperlink{class_ps3_joystick_a0825a60081d1c1b8bd941fed38641af8}{Ps3\-Button} \{ \\*
{\bfseries k\-Triangle} = 1, 
{\bfseries k\-Circle} = 2, 
{\bfseries k\-Cross} = 3, 
{\bfseries k\-Square} = 4, 
\\*
{\bfseries k\-L3} = 5, 
{\bfseries k\-R3} = 6, 
{\bfseries k\-L1} = 7, 
{\bfseries k\-R1} = 8, 
\\*
{\bfseries k\-D\-Up} = 9, 
{\bfseries k\-D\-Down} = 10, 
{\bfseries k\-D\-Left} = 11, 
{\bfseries k\-D\-Right} = 12, 
\\*
{\bfseries k\-P\-S} = 13, 
{\bfseries k\-L2} = 14, 
{\bfseries k\-R2} = 15
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ps3_joystick_acb4dec458bc55e0fe984b61d6055beb9}{Ps3\-Joystick} (int joystick\-Port)
\item 
\hyperlink{class_ps3_joystick_aafecd2660a4c963a571680a7d2641085}{$\sim$\-Ps3\-Joystick} ()
\item 
double \hyperlink{class_ps3_joystick_a03fe4dd014d7f6931f286a4563948e71}{Get\-Axis\-Value} (\hyperlink{class_ps3_joystick_ad447de4b9fe7634911569cd2aeaf7eb4}{Ps3\-Axis} axis)
\item 
double \hyperlink{class_ps3_joystick_ac2896eda5e12a16b5c5486e49c620a53}{Get\-Axis\-Value} (int axis)
\item 
bool \hyperlink{class_ps3_joystick_a8f45e50d5da81f37a26236f0a2171a4f}{Get\-Button} (\hyperlink{class_ps3_joystick_a0825a60081d1c1b8bd941fed38641af8}{Ps3\-Button} button)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
The \hyperlink{class_ps3_joystick}{Ps3\-Joystick} class allows you to receive input data from an Play\-Station 3 controller. 

\subsection{Member Enumeration Documentation}
\hypertarget{class_ps3_joystick_ad447de4b9fe7634911569cd2aeaf7eb4}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Ps3\-Axis@{Ps3\-Axis}}
\index{Ps3\-Axis@{Ps3\-Axis}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Ps3\-Axis}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Ps3\-Joystick\-::\-Ps3\-Axis}}}\label{class_ps3_joystick_ad447de4b9fe7634911569cd2aeaf7eb4}
The Ps3\-Axis enum specifies which axis (can be from a analog stick or the tilt sensor) to read from. \hypertarget{class_ps3_joystick_a0825a60081d1c1b8bd941fed38641af8}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Ps3\-Button@{Ps3\-Button}}
\index{Ps3\-Button@{Ps3\-Button}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Ps3\-Button}]{\setlength{\rightskip}{0pt plus 5cm}enum {\bf Ps3\-Joystick\-::\-Ps3\-Button}}}\label{class_ps3_joystick_a0825a60081d1c1b8bd941fed38641af8}
The Ps3\-Button enum specifies which button to read from. 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_ps3_joystick_acb4dec458bc55e0fe984b61d6055beb9}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Ps3\-Joystick@{Ps3\-Joystick}}
\index{Ps3\-Joystick@{Ps3\-Joystick}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Ps3\-Joystick}]{\setlength{\rightskip}{0pt plus 5cm}Ps3\-Joystick\-::\-Ps3\-Joystick (
\begin{DoxyParamCaption}
\item[{int}]{joystick\-Port}
\end{DoxyParamCaption}
)}}\label{class_ps3_joystick_acb4dec458bc55e0fe984b61d6055beb9}
Constructor for \hyperlink{class_ps3_joystick}{Ps3\-Joystick}.


\begin{DoxyParams}{Parameters}
{\em joystick\-Port} & The port number that the Play\-Station 3 controller is plugged into. \\
\hline
\end{DoxyParams}
\hypertarget{class_ps3_joystick_aafecd2660a4c963a571680a7d2641085}{\index{Ps3\-Joystick@{Ps3\-Joystick}!$\sim$\-Ps3\-Joystick@{$\sim$\-Ps3\-Joystick}}
\index{$\sim$\-Ps3\-Joystick@{$\sim$\-Ps3\-Joystick}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{$\sim$\-Ps3\-Joystick}]{\setlength{\rightskip}{0pt plus 5cm}Ps3\-Joystick\-::$\sim$\-Ps3\-Joystick (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_ps3_joystick_aafecd2660a4c963a571680a7d2641085}
Destructor for \hyperlink{class_ps3_joystick}{Ps3\-Joystick}. 

\subsection{Member Function Documentation}
\hypertarget{class_ps3_joystick_a03fe4dd014d7f6931f286a4563948e71}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Get\-Axis\-Value@{Get\-Axis\-Value}}
\index{Get\-Axis\-Value@{Get\-Axis\-Value}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Get\-Axis\-Value}]{\setlength{\rightskip}{0pt plus 5cm}double Ps3\-Joystick\-::\-Get\-Axis\-Value (
\begin{DoxyParamCaption}
\item[{{\bf Ps3\-Axis}}]{axis}
\end{DoxyParamCaption}
)}}\label{class_ps3_joystick_a03fe4dd014d7f6931f286a4563948e71}
Get the current value of the specified axis.

If this is giving you weird results for the right analog stick's X axis, try Get\-Axis\-Value(3).


\begin{DoxyParams}{Parameters}
{\em axis} & The Ps3\-Axis to read from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The current value of the axis. 
\end{DoxyReturn}
\hypertarget{class_ps3_joystick_ac2896eda5e12a16b5c5486e49c620a53}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Get\-Axis\-Value@{Get\-Axis\-Value}}
\index{Get\-Axis\-Value@{Get\-Axis\-Value}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Get\-Axis\-Value}]{\setlength{\rightskip}{0pt plus 5cm}double Ps3\-Joystick\-::\-Get\-Axis\-Value (
\begin{DoxyParamCaption}
\item[{int}]{axis}
\end{DoxyParamCaption}
)}}\label{class_ps3_joystick_ac2896eda5e12a16b5c5486e49c620a53}
Get the current value of the specified axis.


\begin{DoxyParams}{Parameters}
{\em axis} & A number representing the axis to read from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The current value of the axis. 
\end{DoxyReturn}
\hypertarget{class_ps3_joystick_a8f45e50d5da81f37a26236f0a2171a4f}{\index{Ps3\-Joystick@{Ps3\-Joystick}!Get\-Button@{Get\-Button}}
\index{Get\-Button@{Get\-Button}!Ps3Joystick@{Ps3\-Joystick}}
\subsubsection[{Get\-Button}]{\setlength{\rightskip}{0pt plus 5cm}bool Ps3\-Joystick\-::\-Get\-Button (
\begin{DoxyParamCaption}
\item[{{\bf Ps3\-Button}}]{button}
\end{DoxyParamCaption}
)}}\label{class_ps3_joystick_a8f45e50d5da81f37a26236f0a2171a4f}
Get the current value of the specified button.


\begin{DoxyParams}{Parameters}
{\em button} & The Ps3\-Button to read from. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
The value of the button. 
\end{DoxyReturn}


The documentation for this class was generated from the following files\-:\begin{DoxyCompactItemize}
\item 
C\-:/\-Users/\-Sam/\-Projects/\-F\-R\-C/\-Libraries/\-Fpk/\-Entech-\/\-Fpk-\/\-Subscribers/\-Entech-\/\-Fpk/\-Inputs/Ps3\-Joystick.\-hpp\item 
C\-:/\-Users/\-Sam/\-Projects/\-F\-R\-C/\-Libraries/\-Fpk/\-Entech-\/\-Fpk-\/\-Subscribers/\-Entech-\/\-Fpk/\-Inputs/Ps3\-Joystick.\-cpp\end{DoxyCompactItemize}
